<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>共享图书首页</title>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />
<link rel="stylesheet" href="common/mobile-common/common.css">
<link rel="stylesheet" href="mobile/css/index.css">	
<link rel="stylesheet" href="mobile/css/banner.css">	
<script src="mobile/js/jquery-1.8.3.min.js"></script>
<script src="mobile/js/swiper/idangerous.swiper.min.js"></script>
<script src="{{ url('/common/mobile-common/hmt.js') }}"></script>
</head>
<body>
	<div class="abouts">
		<div class="wrap-cont clearfix">
			<!--页面logo-->
			<div class="top-logo">
			</div>
			<!--end-->
			
			
			<!-- banner -->
			<div class="device">
			  	<div class="swiper-container">
				    <div class="swiper-wrapper clearfix">
				    </div>
			  	</div>
				<div class="pagination1"></div>
			</div>
			</div>
			<!--end-->
			
			
			<!--页面主干-->
			<div class="nr-cont clearfix">
				<div class="clearfix">
					<!--旅游卡激活和个人中心-->
					{{--@if ($switch == 2)--}}
					<div class="tab-con">
						<img src="mobile/images/jh-bgg.png">
						<div class="tab-txt">
								<p><img src="mobile/images/jh.png"></p>
								<p>扫码借书</p>
						</div>
					</div>
					{{--@else--}}
					{{--<!--激活失效-->--}}
					{{--<div class="tab-con jhsx" style="display: block">--}}
						{{--<img src="mobile/images/jh-bgg2.png">--}}
						{{--<div class="tab-txt">--}}
								{{--<p><img src="mobile/images/jh.png"></p>--}}
								{{--<p>实体卡激活</p>--}}
						{{--</div>--}}
					{{--</div>--}}
					{{--@endif--}}
					<!--end-->
					<div class="tab-con tab-cont2">
						<img src="mobile/images/grzx-bgg.png">
						<div class="tab-txt">
							<a href="{{url('wap/member')}}">
								<p><img src="mobile/images/wod.png"></p>
								<p>个人中心</p>
							</a>
						</div>
					</div>	
				</div>
				<!--end-->
				
				
				<!--end-->
			</div>
		
	</div>
	<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript" charset="utf-8">
		wx.config(<?php echo $js->config(array('onMenuShareQQ', 'onMenuShareWeibo','scanQRCode'), false) ?>);
		wx.ready(function () {
				// 在这里调用 API
				wx.checkJsApi({
					jsApiList: ['chooseImage'], // 需要检测的JS接口列表，所有JS接口列表见附录2,
					success: function (res) {
//					alert(res.errMsg);
//						 以键值对的形式返回，可用的api值true，不可用为false
//						 {"checkResult":{"chooseImage":true},"errMsg":"checkJsApi:ok"}
					}
				});
		});
		$(".tab-con").on("click", function () {
			wx.scanQRCode({
				needResult: 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
				scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码，默认二者都有
					success: function (res) {

						var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
					}

			})

		});
	</script>
</body>
</html>
